/**
 * 判断手机上是否安装有某个app。
 * @param 
 */
function isInstallApp(urlTypes) {
	try {
		var os = plus.os.name;
		if ('iOS' == os) {
			var UIApplication = plus.ios.importClass("UIApplication");
			var NSURL = plus.ios.importClass("NSURL");  			
			var app = UIApplication.sharedApplication();  
			var bdScheme = NSURL.URLWithString(urlTypes);  
			var isInstall = app.canOpenURL(bdScheme);  			
			plus.ios.deleteObject(bdScheme);  
			plus.ios.deleteObject(app);
			return isInstall;
		} else {

		}
	} catch (e) {
		console.error('error @isInstallApp!!');
	}
}


module.exports = {
	isInstallApp: isInstallApp
}
